package myBinarySearchTests;


import org.junit.Test;
import src.MyBinarySearch;

public class MyBinarySearchExceptionTest {
	/**
	 * Test method for {@link src.MyLinearSearch#binarySearch(int[], int)}.
	 * @throws java.lang.Exception
	 */
	@Test(expected=NullPointerException.class)
	public void test_binarySearch_NullPointerException()throws NullPointerException{
		try {
			new MyBinarySearch().binarySearch(null, -10);
		} catch (NullPointerException e) {
			throw e;
		}
	}
}
